﻿<%@ Page Title="Register" Theme="Mobile" Language="C#" MasterPageFile="~/ProductMaster.master"
    AutoEventWireup="true" CodeBehind="Register.aspx.cs" Inherits="MobileShop.Register" %>

<%@ Register Assembly="MSCaptcha" Namespace="MSCaptcha" TagPrefix="cc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="bodyContent" runat="server">
    <table style='margin: auto' cellspacing="2">
        <tr>
            <td>
                <label class='normal'>
                    Name</label>
                <label class='required'>
                    *</label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:TextBox style='width:200px' ID='txtName' runat="server" class='tb7'></asp:TextBox>
                <asp:RequiredFieldValidator ValidationGroup="Save" ID="require1" runat="server" ControlToValidate="txtName"
                    Display="Dynamic" CssClass="requiredField" ErrorMessage="" Text=""></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                <label class='normal'>
                    Email</label>
                <label class='required'>
                    *</label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:TextBox style='width:200px' ID='txtEmail' runat="server" class='tb7'></asp:TextBox>
                <asp:RequiredFieldValidator ValidationGroup="Save" ID="RequiredFieldValidator1" runat="server"
                    ControlToValidate="txtEmail" Display="Dynamic" CssClass="requiredField" ErrorMessage=""
                    Text=""></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator Display="Dynamic" CssClass="requiredField" ID="regexEmailValid"
                    runat="server" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                    ControlToValidate="txtEmail" ErrorMessage="<br/>Invalid Email Format"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td>
                <label class='normal'>
                    Password</label>
                <label class='required'>
                    *</label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:TextBox style='width:200px' ID='txtPassword' TextMode="Password" runat="server" class='tb7'></asp:TextBox>
                <asp:RequiredFieldValidator ValidationGroup="Save" ID="RequiredFieldValidator3" runat="server"
                    class='requiredField' ErrorMessage="" Text='' Display="Dynamic" ControlToValidate="txtPassword"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                <label class='normal'>
                    Retype Password</label>
                <label class='required'>
                    *</label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:TextBox style='width:200px' ID='txtRetype' TextMode="Password" runat="server" class='tb7'></asp:TextBox>
                <asp:CompareValidator ID="CompareValidator1" runat="server" ErrorMessage="<br/>Password not matched. Please retype."
                    Display="Dynamic" class='requiredField' ControlToCompare="txtPassword" ControlToValidate="txtRetype"
                    ValidationGroup="Save"></asp:CompareValidator>
            </td>
        </tr>
        <tr>
            <td>
                <label class='normal'>
                    Company</label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:TextBox style='width:200px' ID='txtCompany' runat="server" class='tb7'></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                <label class='normal'>
                    ABN</label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:TextBox style='width:200px' ID='txtABN' runat="server" class='tb7'></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                <label class='normal'>
                    Phone(Tel.)</label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:TextBox style='width:200px' ID='txtPhone' runat="server" class='tb7'></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                <label class='normal'>
                    Address</label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:TextBox style='width:200px' ID='txtAddress' runat="server" class='tb7'></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td style='vertical-align: top'>
                <label class='normal'>
                    Validation Code</label>
                <label class='required'>
                    *</label>
            </td>
        </tr>
        <tr>
            <td style="text-align: left; vertical-align: top;">
                <asp:TextBox style='width:200px' ID="txtCode" runat="server" class='tb7'></asp:TextBox><br />
                <asp:Label ID="Label11" runat='server' Text="Please type below characters." class='normal'></asp:Label><br />
                <cc:CaptchaControl ID="ccJoin" runat="server" CaptchaBackgroundNoise="none" CaptchaLength="5"
                    CaptchaHeight="60" CaptchaWidth="200" CaptchaLineNoise="Medium" CaptchaMinTimeout="5"
                    CaptchaMaxTimeout="240" />
                <asp:RequiredFieldValidator ValidationGroup="Save" ID="RequiredFieldValidator2" runat="server"
                    class='requiredField' ErrorMessage="" Text='' Display="Dynamic" ControlToValidate="txtCode"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                <br />
                <asp:Button id="btnRegister" runat="server" OnClick="btnRegister_OnClick"
                    ValidationGroup="Save" Text="Register" />
                <br />
                <br />
                <div id='divLogin' runat="server" visible="false">
                     <label class='note'>Register successfully! Please click
                     <a href="Login.aspx">here to login</a>
                     </label>
                </div>
                <asp:Label ID="lblError" runat="server" class="required" Visible="false"></asp:Label>
            </td>
        </tr>
    </table>
</asp:Content>
